package 代码记录.Bit48天集训;

import java.util.Scanner;

/**编程题已搞定
 * 1.收件人列表
 * 2.养兔子
 * @author zx
 * @create 2022-06-02 10:05
 */
public class day_34 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            int n = sc.nextInt();
            sc.nextLine();
            String[] arr = new String[n];
            for(int i = 0;i < arr.length;i++){
                arr[i] = sc.nextLine();
            }
            for(int i = 0;i < arr.length;i++){
                for(int j = 0;j < arr[i].length();j++){
                    if(arr[i].charAt(j) == ',' || arr[i].charAt(j) == ' '){
                        arr[i] = '"' + arr[i] + '"';
                        break;
                    }
                }
            }
            for(int i = 0;i < arr.length;i++){
                if(i != arr.length - 1){
                    System.out.print(arr[i] + ", ");
                }else{
                    System.out.print(arr[i]);
                }
            }
            System.out.println();
        }
    }
    public static void main2(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            int n = sc.nextInt();
            long[] dp = new long[91];//注意开数组为n+1就错了,可能是测试用例的问题吧
            dp[1] = 1;
            dp[2] = 2;
            for(int i = 3;i < dp.length;i++){
                dp[i] = dp[i - 1] + dp[i - 2];
            }
            System.out.println(dp[n]);
        }
    }
}
